package arithmetic;

public class PrimeNumber {

	public void printPrime(int scope)

	{
		System.out.println(2);
		for(int i=3;i<=scope;i++)
		{
			boolean isPrime = true;
			int temp = i/2+1;
			for(int j=2;j<=temp;j++)
			{
				System.out.println("jjj"+j);
				if(i%j==0)
				{
					isPrime = false;
					break;
				}
			}
			if(isPrime)
			{
				System.out.println(i);
			}
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		PrimeNumber pn = new PrimeNumber();
		pn.printPrime(100);
	}

}
